package com.he.DesignPatterns.decorator.demo1;

/**
 * @description: 装饰者类 抽象装饰角色
 * @Author: HCL
 * @Date: 2024/8/27 11:18
 */
public abstract class Garnish extends FastFood{
    //声明快餐类变量
    private FastFood fastFood;

    public FastFood getFastFood() {
        return fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }

    public Garnish(FastFood fastFood,double price, String desc){
        super(price, desc);
        this.fastFood = fastFood;
    }
}
